<template>
  <div class="videostyle">
    <div class="title">公告组</div>
    <el-form :model="datas" label-width="120px" label-position="left">
      <el-form-item label="公告" prop="noticeText">
        <el-input v-model="datas.noticeText" />
      </el-form-item>
      <el-form-item label="背景颜色" prop="backgroundColor">
        <el-color-picker v-model="datas.backgroundColor" />
      </el-form-item>
      <el-form-item label="文字颜色" prop="textColor">
        <el-color-picker v-model="datas.textColor" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts" setup name="NoticeStyle">
import { toRefs } from "vue";
const props = defineProps({
  datas: {
    type: Object
  }
});
const { datas } = toRefs(props);
</script>

<style scoped lang="scss">
.title {
  padding: 5px;
  margin-bottom: 15px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  border-left: 4px solid var(--el-color-primary);
}
</style>
